package com.swak.pool;

import java.util.concurrent.TimeUnit;

import com.swak.reactivex.threads.Contexts;
import com.swak.reactivex.threads.OrderContext;
import com.swak.reactivex.threads.OrderContext.OrderAbleContext;
import com.swak.reactivex.threads.WorkerContext;

public class PoolShutdownMain {

	public static void main(String[] args) {
		WorkerContext context1 = Contexts.createWorkerContext("Test.", 1, false, 2, TimeUnit.SECONDS);
		
		context1.shutdown();
		context1.shutdownNow();

		OrderContext context = Contexts.createOrderContext("Test.", 1, false, 2, TimeUnit.SECONDS);
		OrderAbleContext orderContext = context.newOrderAbleContext();
		
		orderContext.shutdown();
	}
}
